package com.hirsi.common.module.auth.vo.param;

import com.hirsi.common.core.validator.annotation.Phone;
import com.hirsi.common.core.validator.annotation.PhoneCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("手机验证码登录入参")
@Data
public class PhoneLoginParam {

    @ApiModelProperty(value = "手机号码", required = true)
    @Phone
    private String phone;

    @ApiModelProperty(value = "短信验证码", required = true, position = 1)
    @PhoneCode
    private String code;

    @ApiModelProperty(value = "记住我，勾选登录时会携带刷新令牌，有效期7天，默认false", position = 2)
    private Boolean remember;
}
